package com.jz.digital;

import android.annotation.SuppressLint;
import android.content.Context;
import android.text.TextUtils;

import androidx.multidex.MultiDexApplication;

import com.jz.digital.database.GreenDaoManager;
import com.jz.digital.net.RetrofitService;
import com.jz.digital.utils.SPHelper;

/**
 * ================================================
 * Created: WangYong
 * Date: 2024/11/24
 * Description:
 * ================================================
 */
public class MyAppLocation extends MultiDexApplication {
    @SuppressLint("StaticFieldLeak")
    public static Context mContext;

    @Override
    public void onCreate() {
        super.onCreate();
        mContext = this;
        GreenDaoManager.getInstance().init(mContext);
        if (!TextUtils.isEmpty(SPHelper.getLocalLanAddress())) {
            RetrofitService.getInstance().init();
        }
    }
}
